package com.Maykk.Demo06;

/**
 * @ClassName: SellTicketsTest
 * @Description: TODO 卖票 - 多线程
 * @Author: MaykkStar@163.com
 */
public class SellTicketsTest {
    public static void main(String[] args) throws InterruptedException {
        SellTickets selT = new SellTickets();
        // 创建三个售票口对象
        Thread selT01 = new Thread(selT,"售票口1 ");
        Thread selT02 = new Thread(selT,"售票口2 ");
        Thread selT03 = new Thread(selT,"售票口3 ");

        // 开始多线程售票
            selT01.start();
            selT02.start();
            selT03.start();

    }
}
